package com.ylkj.ylboss.freemark.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ylkj.common.entity.LawyerInfo;
import com.ylkj.member.service.LawyerInfoService;

@Controller
@RequestMapping("/manage")
public class MangementController {
	private static final Logger logger = LoggerFactory.getLogger(AnswerInfoController.class);
	
    @Autowired
	private LawyerInfoService lawyerInfoService;
	
    @RequestMapping("/login")  
	public ModelAndView login(HttpServletRequest request, HttpServletResponse response) {  
		return new ModelAndView("login", "loginInfo", null); 
	} 
	
	@RequestMapping("/index")  
	public ModelAndView index(HttpServletRequest request, HttpServletResponse response) {  
		return new ModelAndView("index", "index", null); 
	}
	
	@RequestMapping("/memberList")  
	public ModelAndView memberList(HttpServletRequest request, HttpServletResponse response) {  
    	List<LawyerInfo> lawyers = lawyerInfoService.queryLawyerInfoByPara(null); 
    	return new ModelAndView("member-list", "lawyers", lawyers); 
	} 
	
	@RequestMapping("/memberLevel")  
	public ModelAndView memberLevel(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("member-level", "users", null);  
	} 
	
	@RequestMapping("/memberScore")  
	public ModelAndView memberScore(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("member-scoreoperation", "users", null);  
	} 
	
	@RequestMapping("/memberRecordBrowse")  
	public ModelAndView memberRecordBrowse(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("member-record-browse", "users", null);  
	} 
	
	@RequestMapping("/memberRecordDownload")  
	public ModelAndView memberRecordDownload(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("member-record-download", "users", null);  
	} 
	
	@RequestMapping("/memberRecordShare")  
	public ModelAndView memberRecordShare(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("member-record-share", "users", null);  
	} 
	
	@RequestMapping("/adminRole")  
	public ModelAndView adminRole(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("admin-role", "users", null);  
	} 
	
	@RequestMapping("/adminPermission")  
	public ModelAndView adminPermission(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("admin-permission", "users", null);  
	} 
	
	@RequestMapping("/adminList")  
	public ModelAndView adminList(HttpServletRequest request, HttpServletResponse response) {  
        return new ModelAndView("admin-list", "users", null);  
	} 
}
